<div id="menu">
	<ul>
		<li>
			<% authenticated = user_authenticated() %>
			<% if authenticated %>
				<%= link_to "Profil",:controller => :profile, 
								 	 :action => :show,
									 :id => get_current_user_id() %>
			<% else %>
				<%= link_to "Login", :controller => :user, 
								 	 :action => :login %>
			<% end %>
		</li>
		<li>
			<%= link_to "Stammbars", :controller => :bars, 
									 :action => :list %>
		</li>
		<li>
			<%= link_to "Stammg&auml;ste", :controller => :user, 
									 	   :action => :list %>
		</li>
		<li>
			<%= link_to "Nachrichten", :controller => :messages, 
									   :action => :list %>
		</li>
	</ul>
	
	<div class="login">
		<% if authenticated %>
			Willkommen <%= get_current_user_name().to_s.humanize %>!
			<%= link_to "Dein Profil", :controller => :profile, 
									   :action => :show,
									   :id => get_current_user_id() %> 
			<%= link_to "Abmelden",    :controller => :user, 
									   :action => :logout %>
		<% else %>
			<%= link_to "Login",	:controller => :user, 
									:action => :login %>
			<%= link_to "Anmelden", :controller => :user,
									:action => :add_user %>
			<%= link_to "Hilfe", 	:controller => :help,
									:action => :index %>		
		<% end %>
		
	</div>
</div>